import instance from "@/axios";

// 学生分页
export const studentPage = (searchForm)=>instance.post('/student/page',searchForm)

// 编辑学生
export const editStudent = (form)=>instance.put('/student/edit',form)
// 新增学生
export const addStudent = (form)=>instance.post('/student/add',form)

// 删除学生信息
export const deleteStudent = (id)=>instance.delete('/student/delete/'+id)

// 批量导入
export const importStudent = (formData)=>instance.post('/student/import/',formData)

// 批量导出
export const exportStudent = (exportParam)=>instance.post('/student/export/',exportParam,{responseType:'arraybuffer'})